import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [

    {
        path: "/",
        redirect: "/home"
    },

    {
        path: "/home",
        name: "home",
        meta: {age: 10},
        component: () => import(/*webpackChunkName:'home'*/"@/views/home/home.vue")
    },

    {
        path: "/login",
        name: "login",
        meta: {age: 11},
        component: () => import(/*webpackChunkName:'login'*/"@/views/order-for-goods/order-for-goods.vue")
    },
    {
        path: "/user/:userId",
        name: "user",
        meta: {age: 11},
        component: () => import(/*webpackChunkName:'login'*/"@/views/user/user.vue")
    },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router
